package fecat.ui.frame;

import javax.swing.JComponent;
import javax.swing.JTable;

import fecat.services.resource.ResourceService;
import fecat.ui.contextpanel.account.AccountBalanceTable;

public class AccountFrame extends BaseFrame {
	
	public AccountFrame(String name) {
		super(name);
	}
	public JComponent createChildComponent(){
		desktop=new AccountBalanceTable();
		desktop.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
		return desktop;
	}
	public void updateText() {
		String title=ResourceService.getString("Frame.Account.Title");
		this.setTitle(title);
		String tabTitle=ResourceService.getString("Frame.Account.TabTile");
		this.setTabTitle(tabTitle);
	}
}
